package com.qianyu.project.service.impl;

import com.qianyu.project.entity.MaterialClass;
import com.qianyu.project.mapper.MaterialClassMapper;
import com.qianyu.project.service.IMaterialClassService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianyu.project.web.controller.mfy.utils.MaterialClassBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 材料类别 服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Service
public class MaterialClassServiceImpl extends ServiceImpl<MaterialClassMapper, MaterialClass> implements IMaterialClassService {

    @Autowired
    private MaterialClassMapper materialClassMapper;

    @Override
    public List<MaterialClassBean> getTreeNode() {
        return materialClassMapper.getTreeNode();
    }
}
